package com.example.tests;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
//import static org.junit.Assert.assertThat;

import org.testng.annotations.Test;

import com.example.fw.Folders;

public class TestDeleteFolder extends TestBase {
	
	@Test
	public void testFolderCreation(){
		String folder = "newFolderRemoval";
		Folders oldFolders = app.getFolderHelper().getFolders();
		assertThat(app.getFolderHelper().createFolder(folder),is(nullValue()));		
		app.getFolderHelper().deleteFolder(folder);
		Folders newFolders = app.getFolderHelper().getFolders();
		assertThat(newFolders, equalTo(oldFolders.without(folder)));
	}
}
